package com.winit.requirement.repository;

import com.winit.requirement.model.ReqHistory;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReqHistoryRepository extends CrudRepository<ReqHistory, String> {
    ReqHistory findFirstByReqIdOrderByCreateTimeDesc(String reqId);
    List<ReqHistory> findByReqIdOrderByCreateTimeAsc(String reqId);
}
